<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>回访详情</h2>
    </div>
    <div style="width: 220px;height: 80px;content:'';clear:both;display: block;">
        <div style="width: 100px;height: 80px;border: 1px solid #666;float: left;">
            <div style="width: 100%;height: 50%;float: left;font-size: 22px;font-weight: bold;color: red;text-align: center;line-height: 40px;">{$sumn}</div>
            <div style="width: 100%;height: 50%;float: left;font-size: 16px;font-weight: bold;color: black;text-align: center;line-height: 40px;">未审核数量</div>
        </div>
        <div style="width: 100px;height: 80px;border: 1px solid #666;float: right;">
            <div style="width: 100%;height: 50%;float: left;font-size: 22px;font-weight: bold;color: green;text-align: center;line-height: 40px;">{$sumr}</div>
            <div style="width: 100%;height: 50%;float: left;font-size: 16px;font-weight: bold;color: black;text-align: center;line-height: 40px;">已审核数量</div>
        </div>
    </div>
    <form action="{:U(userdetail)}" method="post" enctype="multipart/form-data" class="form-horizontal">
        <input type="hidden" name='id' value="{$data.id}"/>
        <div class="form-item">
            <label class="item-label">用户姓名</label>
            <div class="controls">
                <input type="text" class="text input-large" name="realName" value="{$data.realName}" disabled="disabled">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">联系电话</label>
            <div class="controls">
                <input type="text" class="text input-large" name="phone" value="{$data.phone}" disabled="disabled">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">省市</label>
            <div class="controls">
                <input type="text" class="text input-large" name="province" value="{$data.province}{$data.city}" disabled="disabled">
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">公司名称</label>
            <div class="controls">
                <input type="text" class="text input-large" name="shopName" value="{$data.shopName}" disabled="disabled">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">公司地址</label>
            <div class="controls">
                <input type="text" class="text input-large" name="street" value="{$data.street}" disabled="disabled">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">是否通过</label>
            <if condition="$data.status neq 2">
                <div class="controls">
                    <input type="text" class="text input-large" value="{$data.status}" disabled="disabled">
                </div>
                <else />
                <label class="radio-inline">
                    <input type="radio" name="status" checked value="1">通过
                </label>
                <label class="radio-inline">
                    <input type="radio" name="status" value="0">不通过
                </label>
            </if>
        </div>
        <div class="form-item">
            <label class="item-label">备注</label>
            <if condition="$data.status neq 2">
                <div class="controls">
                    <textarea class="form-control" name="remark" rows="3" style="width: 400px;" disabled="disabled">{$data.remark}</textarea>
                </div>
                <else />
                <div class="controls">
                    <textarea class="form-control" name="remark" rows="3" style="width: 400px;">{$data.remark}</textarea>
                </div>
            </if>
        </div>

        <if condition="$data.status neq 2">
            <div class="form-item">
                <label class="item-label">审核人</label>
                <div class="controls">
                    <input type="text" class="text input-large" name="reviewer" value="{$data.reviewer}" disabled="disabled">
                </div>
            </div>
            <div class="form-item">
                <label class="item-label">审核时间</label>
                <div class="controls">
                    <input type="text" class="text input-large" name="reviewtime" value="{$data.reviewtime|time_format}" disabled="disabled">
                </div>
            </div>
            <else />
            <div class="form-item">
                <label class="item-label">审核人</label>
                <div class="controls">
                    <input type="text" class="text input-large" name="reviewer" value="{$data.reviewer}">
                </div>
            </div>
        </if>

        <div class="form-item" style="margin-top: 30px;">
            <if condition="$data.status eq 2">
                <button class="btn submit-btn ajax-post" type="submit" target-form="form-horizontal">保存后下一条</button>
                <a href="{:U('Appposter/usermanagement')}" class="btn btn-return">取 消</a>
                <!--<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">取 消</button>-->
                <a href="{:U('Appposter/nextuserdetail?id='.$data['id'])}" class="btn submit-btn">下一条</a>
                <else />
                <a href="{:U('Appposter/nextuserdetail?id='.$data['id'])}" class="btn submit-btn">下一条</a>
                <a href="{:U('Appposter/usermanagement')}" class="btn btn-return">取 消</a>
                <!--<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">取 消</button>-->
            </if>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Appposter/usermanagement')}');
    </script>
</block>